<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>API对接文档</title>
    <link rel="stylesheet" href="${ctxPath}/assets/libs/layui/css/layui.css"/>
    <link rel="stylesheet" href="${ctxPath}/assets/module/admin.css">
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>
<body class="layui-fluid">
<div class="layui-row layui-col-space15">
    <h1 style="text-align: center">API对接文档</h1>
    <div class="layui-card">
        <div class="layui-card-header">一、发起付款接口 ${api}/xsbox-pay/api/pay/subOrder</div>
        <div class="layui-card-body">
            <h6 style="font-weight: 600;">SDK  demo 下载； <a style="color: #082ef6" target="_blank" href="http://49.234.79.176/tiger-xsbox-sdk/xsbox-java-sdk.zip">java-sdk.zip</a>&nbsp;&nbsp;&nbsp;&nbsp;<a style="color: #082ef6" target="_blank" href="http://49.234.79.176/tiger-xsbox-sdk/xsbox-php-sdk.zip">php-sdk.zip</a>&nbsp;&nbsp;&nbsp;&nbsp;点击文件即可下载</h6>
            <h5>传参方式：Post</h5>
            <p>使用方法：用表单post的方式</p>
            <hr>
            <h5>请求参数：</h5>
            <table class="layui-table" style="font-size:16px;">
                <thead>
                <tr>
                    <th>#</th>
                    <th>参数名</th>
                    <th>含义</th>
                    <th>类型</th>
                    <th>说明</th>
                </tr>
                </thead>
                <tbody>

                <tr>
                    <td>1</td>
                    <td><small>appId</small></td>
                    <td><small>应用ID</small></td>
                    <td><small>String</small></td>
                    <td><small><span style="color:#ff0000;">必填</span>。进入商户后台 -> 运营管理 -> 商户应用查看</small></td>
                </tr>
                <tr>
                <tr>
                    <td>2</td>
                    <td><small>appSecret</small></td>
                    <td><small>应用私钥</small></td>
                    <td><small>String</small></td>
                    <td><small><span style="color:#ff0000;">必填</span>。进入商户后台 -> 运营管理 -> 商户应用查看</small></td>
                </tr>


                <tr>
                    <td>3</td>
                    <td><small>mchNo</small></td>
                    <td><small>平台商户号</small></td>
                    <td><small>String</small></td>
                    <td><small><span style="color:#ff0000;">必填</span>。就是登录的商户号</small></td>
                </tr>
                <tr>
                    <td>4</td>
                    <td><small>mchOrderNo</small></td>
                    <td><small>商户订单号</small></td>
                    <td><small>String</small></td>
                    <td>
                        <small>
                            <span style="color:#ff0000;">必填</span>。商户唯一订单。
                        </small>
                    </td>
                </tr>
                <tr>
                    <td>7</td>
                    <td><small>amount</small></td>
                    <td><small>支付金额</small></td>
                    <td><small>long</small></td>
                    <td><small><span style="color:#ff0000;">必填</span>。支付金额 单位：分 </small></td>
                </tr>
                <tr>
                    <td>8</td>
                    <td><small>subject</small></td>
                    <td><small>商品名称</small></td>
                    <td><small>String</small></td>
                    <td><small><span style="color:#ff0000;">必填</span>。您的商品名称，用来显示在后台的订单名称。</small></td>
                </tr>
                <tr>
                    <td>9</td>
                    <td><small>body</small></td>
                    <td><small>商品描述</small></td>
                    <td><small>String</small></td>
                    <td><small>简单描述商品</small></td>
                </tr>
                <tr>
                    <td>5</td>
                    <td><small>payWay</small></td>
                    <td><small>支付方式</small></td>
                    <td><small>String</small></td>
                    <td>
                        <small>
                            <span style="color:#ff0000;">必填</span>。目前只支持 -> 微信：WEIXIN, 支付宝：ALIPAY
                        </small>
                    </td>
                </tr>
                <tr>
                    <td>10</td>
                    <td><small>notifyUrl</small></td>
                    <td><small>异步通知地址</small></td>
                    <td><small>String</small></td>
                    <td><small>异步通知地址</small></td>
                </tr>


                </tbody>
            </table>
        </div>
    </div>
</div>
<div class="layui-card">
    <div class="layui-card-header">二、付款成功回调通知</div>
    <div class="layui-card-body">
        <p>用户付款成功后，我们会向您在发起付款接口传入的
            <mark>notify_url</mark>
            网址发送通知。您的服务器只要返回大写字符串“SUCCESS”（不包括引号），就表示回调已收到。如果返回不是SUCCESS，我们会再尝试回调5次，每次间隔1 5 10 15 20分钟。
        </p>
        <h5>传参方式：GET</h5>
        <hr>
        <h5>参数内容：</h5>
        <table class="layui-table" style="font-size:16px;">
            <thead>
            <tr>
                <th>#</th>
                <th>参数名</th>
                <th>含义</th>
                <th>类型</th>
                <th>说明</th>
            </tr>
            </thead>
            <tbody>

            <tr>
                <td>1</td>
                <td><small>appId</small></td>
                <td><small>应用ID</small></td>
                <td><small>String</small></td>
                <td><small>应用ID</small></td>
            </tr>

            <tr>
                <td>3</td>
                <td><small>mchNo</small></td>
                <td><small>平台商户号</small></td>
                <td><small>String</small></td>
                <td><small>就是登录的商户号</small></td>
            </tr>
            <tr>
                <td>4</td>
                <td><small>mchOrderNo</small></td>
                <td><small>商户订单号</small></td>
                <td><small>String</small></td>
                <td>商户唯一订单</td>
            </tr>
            <tr>
                <td>9</td>
                <td><small>orderId</small></td>
                <td><small>支付订单ID</small></td>
                <td><small>String</small></td>
                <td><small>支付订单ID</small></td>
            </tr>
            <tr>
                <td>7</td>
                <td><small>amount</small></td>
                <td><small>支付金额</small></td>
                <td><small>long</small></td>
                <td><small>支付金额 单位：分 </small></td>
            </tr>
            <tr>
                <td>8</td>
                <td><small>orderStatus</small></td>
                <td><small>支付状态</small></td>
                <td><small>String</small></td>
                <td><small>成功 SUCCESS 非 SUCCESS 就是不成功 </small></td>
            </tr>

            <tr>
                <td>9</td>
                <td><small>msg</small></td>
                <td><small>支付信息</small></td>
                <td><small>String</small></td>
                <td><small>支付成功 或 支付失败等等 </small></td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
</div>
</div>
</body>
</html>